<p>news works!</p>

<button (click)="getData()">get请求</button>

<p style="margin-top: 20px">
  <button (click)="doLogin()">post提交数据</button>
</p>

<p style="margin-top: 20px">
  <button (click)="getJsonp()">jsonp处理跨域</button>
</p>

<p style="margin-top: 20px">
  <button (click)="axiosGetData()">通过axios获取数据</button>
</p>


<hr>
<ul>
  <li *ngFor="let item of list">{{item.title}}</li>
</ul>
<hr>
<ul>
  <li>{{postDate.name}}</li>
  <li>{{postDate.age}}</li>
</ul>
